import request from '@/utils/request'

// 查询列表
export function listOpinionFeedback(query) {
  return request({
    url: '/admin-api/support/userFeedback/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getOpinionFeedback(feedbackId) {
  return request({
    url: '/admin-api/support/userFeedback/' + feedbackId,
    method: 'get'
  })
}

// 处理意见反馈
export function handleOpinionFeedback(data) {
  return request({
    url: '/admin-api/support/userFeedback',
    method: 'put',
    data: data
  })
}

// 删除意见反馈
export function delOpinionFeedback(id) {
  return request({
    url: '/admin-api/support/userFeedback/' + id,
    method: 'delete'
  })
}
